package apiday06homework;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OswDemo {
    public static void main(String[] args)throws IOException {
        FileOutputStream fos = new FileOutputStream("osw1.txt");
       OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
       osw.write("你是我的我是你的谁？");
       osw.write("这是我的");
        System.out.println("写出完毕");
        osw.close();
    }
}
